package com.teamb6.shop.service;

        import com.teamb6.shop.domain.Collection;
        import com.teamb6.shop.domain.Goods;

        import java.util.List;

public interface CollectionService {
    //添加、取消收藏
    public int changeCollection(Collection collection);
    //查询所有收藏
    List<Goods> getAllCollection(Integer userId);
    //删除收藏商品
    public int deleteCollection(Integer userId,Integer goodsId);
    //根据主键查询一个收藏
    public Collection getByCollectionKey(Integer userId,Integer goodsId);
}
